﻿using UnityEngine;
using System.Collections;
using System.Text;
using System.Collections.Generic;
using Debug = UnityEngine.Debug;

public class TestA : MonoBehaviour
{

    protected static string DATA_PATH = "/../abdata" + '/';

    public List<string> names;
    public List<string> charanames;
    // Use this for initialization
    void Start()
    {
        Init();
        UnityEngine.Debug.Log("Hello dnSPy");
    }

    // Update is called once per frame
    void Update()
    {

    }

    public void Init()
    {
        StringBuilder stringBuilder = new StringBuilder();
        stringBuilder.Append("G:/Games/HoneySelectJY/HoneySelect_32_Data");
        stringBuilder.Append(DATA_PATH);
        global::AssetBundleManager.Initialize("abdata", stringBuilder.ToString());
        LoadedAssetBundle.Output();

        InitFemaleList();
        return;
        foreach (var name in names)
        {
            Load(name);
        }

        foreach (var name in charanames)
        {
            LoadChara(name);
        }


        //DataExporter.Export();
    }
    ConciergeInfo conciergeInfo = new ConciergeInfo();
    public virtual void InitFemaleList()
    {
        if (conciergeInfo.femaleNavi == null)
        {
            conciergeInfo.femaleNavi = global::Singleton<Manager.Character>.Instance.CreateFemale(gameObject, 0, null);
        }
        SceneAssist.Assist.CreateFeamale(ref this.conciergeInfo.femaleNavi, "ill_Sitri", 0, false);
    }

    public void LoadChara(string abToLoad)
    {
        if (string.IsNullOrEmpty(abToLoad) || abToLoad.EndsWith("`"))
            return;

        string assetBundleName = "chara/" + abToLoad;
        UnityEngine.Debug.Log("Load:" + assetBundleName);

        int num = 0;

        var op = AssetBundleManager.LoadAllAsset(assetBundleName, typeof(object));
        while (op.MoveNext())
        {
            var cur = op.Current;
            UnityEngine.Debug.Log(cur);
        }

    }

    public void Load(string abToLoad)
    {
        if (string.IsNullOrEmpty(abToLoad) || abToLoad.EndsWith("`"))
            return;
        UnityEngine.Debug.Log("Load:" + abToLoad);

        string assetBundleName = abToLoad;
        int num = 0;

        var op = AssetBundleManager.LoadAllAsset(assetBundleName, typeof(object));
        while (op.MoveNext())
        {
            var cur = op.Current;
            UnityEngine.Debug.Log(cur);
        }

    }

}

public class ConciergeInfo
{
    // Token: 0x170002F6 RID: 758
    // (get) Token: 0x06001955 RID: 6485 RVA: 0x000D8FB4 File Offset: 0x000D71B4
    // (set) Token: 0x06001956 RID: 6486 RVA: 0x000D8FBC File Offset: 0x000D71BC
    public SceneAssist.ItemHolder itemHolder { get; set; }

    // Token: 0x170002F7 RID: 759
    // (get) Token: 0x06001957 RID: 6487 RVA: 0x000D8FC8 File Offset: 0x000D71C8
    // (set) Token: 0x06001958 RID: 6488 RVA: 0x000D8FD0 File Offset: 0x000D71D0

    // Token: 0x170002F8 RID: 760
    // (get) Token: 0x06001959 RID: 6489 RVA: 0x000D8FDC File Offset: 0x000D71DC
    public bool isAnger
    {
        get
        {
            return this.inCount >= 11;
        }
    }

    // Token: 0x170002F9 RID: 761
    // (get) Token: 0x0600195A RID: 6490 RVA: 0x000D8FEC File Offset: 0x000D71EC
    public int stage
    {
        get
        {
            return (!this.isAnger) ? ((this.inCount != 10) ? 0 : 1) : 2;
        }
    }

    // Token: 0x170002FA RID: 762
    // (get) Token: 0x0600195B RID: 6491 RVA: 0x000D9014 File Offset: 0x000D7214
    public int hCount
    {
        get
        {
            return this.femaleNavi.femaleParameterInfo.hCount;
        }
    }

    // Token: 0x04001FB1 RID: 8113
    public global::CharFemale femaleNavi;

    // Token: 0x04001FB2 RID: 8114
    public int inCount;
}
